package com.suxiaoxiao.springbootlearn.designpattern.iteratorpattern.component;

/**
 * 女招待
 *
 * 感觉组合模式可以用到权限树。
 * @author 、
 */
public class Waitress {

    MenuComponent allMenus;

    public Waitress(MenuComponent allMenus) {
        this.allMenus = allMenus;
    }

    public void printMenu() {
        allMenus.print();
    }

}
